#include "include/sync.h"

#ifdef _WIN32
#include "pthreads/include/pthread.h"
#else
#include <pthread.h>
#endif

static pthread_mutex_t mutex;
static pthread_cond_t isReady;

void init_synch() {
    pthread_mutex_init(&mutex, NULL);
    pthread_cond_init(&isReady,NULL);
}

pthread_mutex_t* get_mutex()
{
  return &mutex;
}

pthread_cond_t* get_is_ready()
{
  return &isReady;
}

